<template>
  <div id="wrapper">
    <div id="flash"></div>
    <a href="http://akexc.com" target="_black">我的博客~~</a>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
#wrapper {
  position: relative;
  line-height: 70px;
  text-align: center;
  width: 200px;
  height: 70px;
  overflow: hidden;
  cursor: pointer;
  background: #00000050;
  border-radius: 30px 0;
  transform: translateY(-20px);
  transition: 0.1s;
  a {
    font-size: 24px;
    text-decoration: none;
    color: #fff;
  }
  &:hover {
    filter: blur(0.7px);
  }
}
#flash {
  position: absolute;
  top: 0;
  left: -120px;
  width: 50px;
  height: 100px;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-30deg);
  transition: all 0.5s ease-in-out;
}
#wrapper:hover #flash {
  left: 300px;
  transition: all 0.5s ease-in-out;
}
</style>
